Xbasic

SQL::ConnectionDropUserFromGroup Method

Syntax

Result_Flag as L = DropUserFromGroup(UserName as C, GroupName as C)

Arguments

UserNameCharacter

The user's login name.

GroupNameCharacter

The name of the group.

Returns

Result_FlagLogical

TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).

Description

Remove the user from the group in the currently connected database or server.

Discussion

The DropUserFromGroup() method removes the user from the group in the currently connected database or server.

Example

dim conn as SQL::Connection
dim connString as C
connString = "{A5API='SQLServer', Server='doc3000', Trusted_connection=yes, Database='Northwind'}"
conn.open(connString)
conn.DropUserToGroup("Edward", "Techwriting")

See Also